<template>
	<view class="x-wrapper">
		<view class="x-main-content">
			<view class="content-box">
				<view class="inner">
					<view class="i-title">充值协议</view>
					<view class="i-content">
						<u-parse :content="content"></u-parse>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import { getAgreement } from '@/common/api.js'
	export default {
		data() {
			return {
				content: ''
			}
		},
		onLoad() {
			this.loadData()
		},
		onPullDownRefresh() {
			this.loadData()
		},
		methods: {
			loadData() {
				var data = {
					type: 'recharge_agreement'
				}
				getAgreement(data).then(res => {
					this.content = res.data
					uni.stopPullDownRefresh()
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content-box {
		padding: 30rpx 40rpx;

		.inner {
			padding: 30rpx 40rpx;
			background: #fff;
			border-radius: 12rpx;

			.i-title {
				font-size: 32rpx;
				margin-bottom: 40rpx;
				text-align: center;
			}

			.i-content {}
		}
	}
</style>
